import request from '@/utils/request'
import type { ApiResponse, ApiListResponse } from '@/types/common'
import type { LawCase } from '@/types/lawcase'

// 案件管理相关API接口定义
export const lawcaseApi = {
  // 获取案件开庭时间表
  getCourtScheduleList: (params?: any): Promise<ApiResponse<LawCase[]>> => {
    return request({
      url: '/api/lawcase/cases/court_schedule_list',
      method: 'get',
      params,
    })
  },

  // 获取案件列表
  getLawcaseList: (params?: any): Promise<ApiListResponse<LawCase>> => {
    return request({
      url: '/api/lawcase/cases/list',
      method: 'get',
      params,
    })
  },
}
